io.write("abc\n")

-- io.read will read input
-- input something and ctrl+d end
t = io.read('*all')
io.write(t)

str = "你好 world"
t = string.gsub(str,"([\128-\255])",function(c)
	return string.format("0x%02X ",string.byte(c))
	end)
io.write(t)
-- like js encodeURIComponent("你好")
